.class public Lcom/zuiapps/suite/utils/device/DoubleKeyUtils;
.super Ljava/lang/Object;
.source "DoubleKeyUtils.java"


# static fields
.field private static lastClickTime:J


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 8
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static isFastDoubleClick()Z
    .registers 1

    .prologue
    .line 13
    const/16 v0, 0x1f4

    invoke-static {v0}, Lcom/zuiapps/suite/utils/device/DoubleKeyUtils;->isFastDoubleClick(I)Z

    move-result v0

    return v0
.end method

.method public static isFastDoubleClick(I)Z
    .registers 7
    .param p0, "duration"    # I

    .prologue
    .line 17
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 18
    .local v0, "time":J
    sget-wide v4, Lcom/zuiapps/suite/utils/device/DoubleKeyUtils;->lastClickTime:J

    sub-long v2, v0, v4

    .line 19
    .local v2, "timeD":J
    const-wide/16 v4, 0x0

    cmp-long v4, v4, v2

    if-gez v4, :cond_15

    int-to-long v4, p0

    cmp-long v4, v2, v4

    if-gez v4, :cond_15

    .line 20
    const/4 v4, 0x1

    .line 23
    :goto_14
    return v4

    .line 22
    :cond_15
    sput-wide v0, Lcom/zuiapps/suite/utils/device/DoubleKeyUtils;->lastClickTime:J

    .line 23
    const/4 v4, 0x0

    goto :goto_14
.end method
